import * as actionType from './actionType'
import { fromJS } from 'immutable'
const defaultState =fromJS({
  ceshi: "",
  list:[1,2,3]
})

export default ( state = defaultState, action) =>{
  switch (action.type){
	case actionType.CHANGE_VALUE :
    console.log(state)
	return {
	  ceshi: fromJS(action.value)
	}
	case "GET_HOME_LIST" :
      return {
        ceshi: fromJS(action.value)
	  }
	default:
	return state
  }
}